From: emellor@ewan Date: Sun, 18 Sep 2005 21:42:02 +0000 (+0100) Subject: Add and use XendDomainInfo.getBackendFlags to decouple image.py from the X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16780^2~47^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=03454aa712ff144d81c6a8614df76fdf11fc7955;p=xen.git Add and use XendDomainInfo.getBackendFlags to decouple image.py from the internals of XendDomainInfo, in preparation for changing the latter. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index d6b6637b06..f26323cb94 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -354,6 +354,10 @@ class XendDomainInfo: self.storeDom("store/ring-ref", ref) + def getBackendFlags(self): + return self.backend_flags + + def closeStoreChannel(self): """Close the store channel, if any. Nothrow guarantee.""" diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index 4fe222bf88..6d7f363ffd 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -188,7 +188,7 @@ class ImageHandler: return # Set params and call buildDomain(). - self.flags = self.vm.backend_flags + self.flags = self.vm.getBackendFlags() if not os.path.isfile(self.kernel): raise VmError('Kernel image does not exist: %s' % self.kernel)